<<<<<<< HEAD
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport"
          content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
    <meta content="yes" name="apple-mobile-web-app-capable">
    <meta content="black" name="apple-mobile-web-app-status-bar-style">
    <meta content="telephone=no" name="format-detection">
    <meta content="no-cache" http-equiv="Cache-Control">
    <title>源之东方</title>
    <link href="__STATIC__/css/shopin.css" rel="stylesheet"/>
    <link href="__STATIC__/css/loading.css" rel="stylesheet"/>
</head>
<body>
<div class="header">
    <div class="left"><a href="javascript:;" class="a-back"><span>返回</span></a></div>
    <div class="center">
        <h1>我的订单</h1>
    </div>
</div><!--//头部结束-->

<div class="content">
    <div class="all-order">
        {volist name="orderList" id="vo" key='k'}
        <div class="order" id="mescroll">
            <div class="hd">
                订单号：<span class="code">{$key}</span>
                <span class="statu f-red">未支付</span>
            </div>
            <div class="bd">
                {volist name="vo" id="v"}
                <div class="small">
                    <a href="/product/info.html?id={$v.pid}" class="list-item">
                        <!-- <div class="p"><img src="__STATIC__/{$v.url}"></div> -->
                        {if (substr($v.url, 0, 1) !== 'h')}
                        <div class="p"><img src="http://img.58bjcf.com/{$v.url}"></div>
                        {else}
                        <div class="p"><img src="{$v.url}"></div>
                        {/if}
                        <div class="d">
                            <h3 class="d-title clamp">{$v.color}</h3>
                            <div class="d-main">
                                <div class="sku">颜色:{$v.color};尺码:{$v.size};数量:x{$v.num}</div>
                                <div class="sub">
									<span class="price">
										<span class="s">￥<em class="n">{$v.oprice}</em>(会员价)</span>
									</span>
                                </div>
                            </div>
                        </div>
                    </a>
                </div><!-- //单品结束 -->
                {/volist}
            </div>
            <div class="ft">
                <div class="btn-box">
                    <a href="" class="btn delOrder">去支付</a>
                </div>
            </div>
        </div><!-- //订单结束 -->
        {/volist}
    </div>
    <div class="loading">
        <span>加载中...</span>
        <div class="pswp__preloader__icn">
            <div class="pswp__preloader__cut">
                <div class="pswp__preloader__donut"></div>
            </div>
        </div>
    </div>
</div>
<script src="__STATIC__/js/zepto.min.js"></script>
<script src="__STATIC__/js/base.min.js"></script>
<script src="__STATIC__/js/shopin.js"></script>
<script>
    function getScrollTop() {
        var scrollTop = 0;
        if (document.documentElement && document.documentElement.scrollTop) {
            scrollTop = document.documentElement.scrollTop;
        } else if (document.body) {
            scrollTop = document.body.scrollTop;
        }
        return scrollTop;
    }

    function getClientHeight() {
        var clientHeight = 0;
        if(document.body.clientHeight && document.documentElement.clientHeight) {
            clientHeight = Math.min(document.body.clientHeight, document.documentElement.clientHeight);
        } else {
            clientHeight = Math.max(document.body.clientHeight, document.documentElement.clientHeight);
        }
        return clientHeight;
    }

    function getScrollHeight() {
        return Math.max(document.body.scrollHeight, document.documentElement.scrollHeight);
    }

    //滚动事件触发
    window.onscroll = function() {
        if(getScrollTop() + getClientHeight() == getScrollHeight()) {
            console.log('下拉刷新了')
            //此处发起AJAX请求
        }
    }
    $('.delOrder').on('click',function(){
        var aobj =$(this).parents().siblings('.hd').find('.code').text();
        $(this).attr('href','/orderpay/'+aobj)

    })
    // for(i=0;i<$('.order').length;i++){
    // 	console.log($('.code').eq(i).text())
    // }

</script>
</body>
=======
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport"
          content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
    <meta content="yes" name="apple-mobile-web-app-capable">
    <meta content="black" name="apple-mobile-web-app-status-bar-style">
    <meta content="telephone=no" name="format-detection">
    <meta content="no-cache" http-equiv="Cache-Control">
    <title>源之东方</title>
    <link href="__STATIC__/css/shopin.css" rel="stylesheet"/>
    <link href="__STATIC__/css/loading.css" rel="stylesheet"/>
</head>
<body>
<div class="header">
    <div class="left"><a href="javascript:;" class="a-back"><span>返回</span></a></div>
    <div class="center">
        <h1>我的订单</h1>
    </div>
</div><!--//头部结束-->

<div class="content">
    <div class="all-order">
        {volist name="orderList" id="vo" key='k'}
        <div class="order" id="mescroll">
            <div class="hd">
                订单号：<span class="code">{$key}</span>
                <span class="statu f-red">未支付</span>
            </div>
            <div class="bd">
                {volist name="vo" id="v"}
                <div class="small">
                    <a href="/product/info.html?id={$v.pid}" class="list-item">
                        <!-- <div class="p"><img src="__STATIC__/{$v.url}"></div> -->
                        {if (substr($v.url, 0, 1) !== 'h')}
                        <div class="p"><img src="http://img.58bjcf.com/{$v.url}"></div>
                        {else}
                        <div class="p"><img src="{$v.url}"></div>
                        {/if}
                        <div class="d">
                            <h3 class="d-title clamp">{$v.color}</h3>
                            <div class="d-main">
                                <div class="sku">颜色:{$v.color};尺码:{$v.size};数量:x{$v.num}</div>
                                <div class="sub">
									<span class="price">
										<span class="s">￥<em class="n">{$v.oprice}</em>(会员价)</span>
									</span>
                                </div>
                            </div>
                        </div>
                    </a>
                </div><!-- //单品结束 -->
                {/volist}
            </div>
            <div class="ft">
                <div class="btn-box">
                    <a href="" class="btn delOrder">去支付</a>
                </div>
            </div>
        </div><!-- //订单结束 -->
        {/volist}
    </div>
    <div class="loading">
        <span>加载中...</span>
        <div class="pswp__preloader__icn">
            <div class="pswp__preloader__cut">
                <div class="pswp__preloader__donut"></div>
            </div>
        </div>
    </div>
</div>
<script src="__STATIC__/js/zepto.min.js"></script>
<script src="__STATIC__/js/base.min.js"></script>
<script src="__STATIC__/js/shopin.js"></script>
<script>
    function getScrollTop() {
        var scrollTop = 0;
        if (document.documentElement && document.documentElement.scrollTop) {
            scrollTop = document.documentElement.scrollTop;
        } else if (document.body) {
            scrollTop = document.body.scrollTop;
        }
        return scrollTop;
    }

    function getClientHeight() {
        var clientHeight = 0;
        if(document.body.clientHeight && document.documentElement.clientHeight) {
            clientHeight = Math.min(document.body.clientHeight, document.documentElement.clientHeight);
        } else {
            clientHeight = Math.max(document.body.clientHeight, document.documentElement.clientHeight);
        }
        return clientHeight;
    }

    function getScrollHeight() {
        return Math.max(document.body.scrollHeight, document.documentElement.scrollHeight);
    }

    //滚动事件触发
    window.onscroll = function() {
        if(getScrollTop() + getClientHeight() == getScrollHeight()) {
            console.log('下拉刷新了')
            //此处发起AJAX请求
        }
    }
    $('.delOrder').on('click',function(){
        var aobj =$(this).parents().siblings('.hd').find('.code').text();
        $(this).attr('href','/orderpay/'+aobj)

    })
    // for(i=0;i<$('.order').length;i++){
    // 	console.log($('.code').eq(i).text())
    // }

</script>
</body>
>>>>>>> 93c40d8086b7a8d5a9aa3548fdc8eb06a4272cf7
</html>